package com.lepan.ovgms.manages.apply;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.RelativeLayout;
import android.widget.Toast;

import com.lepan.ovgms.R;
import com.lepan.ovgms.manages.apply.agreeApply.AgreeApplyActivity;


/**
 * Created by pc on 2016/5/4.
 */
public class ActivityApplyNotDetails extends Activity implements View.OnClickListener {

    private RelativeLayout mBack;
    private Button mAgreeApply;
    private Button mRefuseApply;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_not_details);
        mBack = (RelativeLayout) findViewById(R.id.rl_back);
        mAgreeApply = (Button) findViewById(R.id.bt_agree_apply);
        mRefuseApply = (Button) findViewById(R.id.bt_refuse_apply);

        mBack.setOnClickListener(this);
        mAgreeApply.setOnClickListener(this);
        mRefuseApply.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.rl_back:
                finish();
                break;
            case R.id.bt_agree_apply:
                Intent intent = new Intent(ActivityApplyNotDetails.this, AgreeApplyActivity.class);

                startActivity(intent);
                break;
            case R.id.bt_refuse_apply:
                Toast.makeText(getApplicationContext(), "已经拒绝", Toast.LENGTH_LONG).show();
                break;
        }
    }
}
